import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Categories from '@/components/Categories'
import Places from '@/components/Places'
import PlaceEdit from '@/components/PlaceEdit'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: HelloWorld
    },
    {
      path: '/Categories',
      name: 'Categories',
      component: Categories
    },
    {
      path: '/Places',
      component: Places
    },
    {
      name: 'PlaceEdit',
      path: '/PlaceEdit',
      component: PlaceEdit
    }
  ]
})
